package com.yx.learn.domain;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Position entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tposition", catalog = "yx_01")
public class Position implements java.io.Serializable {

	// Fields

	private Integer id;
	private String positionCode;
	private String positionName;


	// Constructors

	/** default constructor */
	public Position() {
	}

	/** minimal constructor */
	public Position(Integer id, String positionCode, String positionName) {
		this.id = id;
		this.positionCode = positionCode;
		this.positionName = positionName;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	@GeneratedValue
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "positionCode", nullable = false, length = 20)
	public String getPositionCode() {
		return this.positionCode;
	}

	public void setPositionCode(String positionCode) {
		this.positionCode = positionCode;
	}

	@Column(name = "positionName", nullable = false, length = 64)
	public String getPositionName() {
		return this.positionName;
	}

	public void setPositionName(String positionName) {
		this.positionName = positionName;
	}


}